package com.ruoyi.sj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sj.mapper.WqEweiShopMerchUserMapper;
import com.ruoyi.sj.domain.WqEweiShopMerchUser;
import com.ruoyi.sj.service.IWqEweiShopMerchUserService;
import com.ruoyi.common.support.Convert;

/**
 * 商户 服务层实现
 * 
 * @author tyc@yanyu.com
 * @date 2019-01-03
 */
@Service
public class WqEweiShopMerchUserServiceImpl implements IWqEweiShopMerchUserService 
{
	@Autowired
	private WqEweiShopMerchUserMapper wqEweiShopMerchUserMapper;

	/**
     * 查询商户信息
     * 
     * @param id 商户ID
     * @return 商户信息
     */
    @Override
	public WqEweiShopMerchUser selectWqEweiShopMerchUserById(Integer id)
	{
	    return wqEweiShopMerchUserMapper.selectWqEweiShopMerchUserById(id);
	}
	
	/**
     * 查询商户列表
     * 
     * @param wqEweiShopMerchUser 商户信息
     * @return 商户集合
     */
	@Override
	public List<WqEweiShopMerchUser> selectWqEweiShopMerchUserList(WqEweiShopMerchUser wqEweiShopMerchUser)
	{
	    return wqEweiShopMerchUserMapper.selectWqEweiShopMerchUserList(wqEweiShopMerchUser);
	}
	
    /**
     * 新增商户
     * 
     * @param wqEweiShopMerchUser 商户信息
     * @return 结果
     */
	@Override
	public int insertWqEweiShopMerchUser(WqEweiShopMerchUser wqEweiShopMerchUser)
	{
	    return wqEweiShopMerchUserMapper.insertWqEweiShopMerchUser(wqEweiShopMerchUser);
	}
	
	/**
     * 修改商户
     * 
     * @param wqEweiShopMerchUser 商户信息
     * @return 结果
     */
	@Override
	public int updateWqEweiShopMerchUser(WqEweiShopMerchUser wqEweiShopMerchUser)
	{
	    return wqEweiShopMerchUserMapper.updateWqEweiShopMerchUser(wqEweiShopMerchUser);
	}

	/**
     * 删除商户对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteWqEweiShopMerchUserByIds(String ids)
	{
		return wqEweiShopMerchUserMapper.deleteWqEweiShopMerchUserByIds(Convert.toStrArray(ids));
	}
	
}
